<template>
	<view class="detail">
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				blog: {}
			}
		},
		onLoad(options) {
			let id = options.id
			this.getBlog(id)
		},
		methods: {
			getBlog(id){
				let url = this.$params.host + this.$params.action_top_blogs + id
				uni.showLoading({
					title: '加载中...',
					mask: false
				});
				this.$req.get(url, res => {
					console.log(res);
				}, () => {
					uni.hideLoading()
				})
			}
		}
	}
</script>

<style>
@import url("detail.css");
</style>
